<?php
/* @var $this CustomerController */
/* @var $model Customer */

$this->breadcrumbs=array(
	'Kunden',
);
?>
<br>
<h1>Kundenverwaltung</h1>

<?php echo CHtml::button('Neuer Kunde', array('submit' => array('customer/create'))); ?>
<br>
<br>
<br>


<?php $this->widget('zii.widgets.grid.CGridView', array(
	'cssFile' => Yii::app()->getRequest()->getBaseUrl() . '/css/tableStyle.css',
	'id'=>'customer-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'customer_id',
		'salutation',
		'first_name',
		'last_name',
		'tel',
		'mobile',
        //'registry_date',
		/*
		'tel_company',
		'email_private',
		'email_company',
		'homepage',
		'fax_private',
		'fax_company',
		'birthday',
		'sector',
		'company',
		'profession',
		'registry_date',
		'info',
		*/
        array (
            'class'=>'CButtonColumn',
            'template'=>'{update}{delete}',
            'buttons'=>array(
            	'update'=>array(
            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/update.png',
            	),
            	'delete'=>array(
            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/delete.png',
            	),
            ),
        ),
	),
)); ?>
